﻿using UnityEngine;
using System.Collections;

public class ShipController : MonoBehaviour {

	public float speed = 50f;
	// Update is called once per frame

	void Update () {
		if (Input.GetKey (KeyCode.D)) {
			transform.RotateAround(Vector3.zero, Vector3.down, speed * Time.deltaTime);
		}		
		if (Input.GetKey (KeyCode.A)) {
			transform.RotateAround(Vector3.zero, Vector3.up, speed * Time.deltaTime);
		}
		if (Input.GetKey (KeyCode.W)) {
			transform.RotateAround(Vector3.zero, Vector3.right, speed * Time.deltaTime);
		}		
		if (Input.GetKey (KeyCode.S)) {
			transform.RotateAround(Vector3.zero, Vector3.left, speed * Time.deltaTime);
		}
	}
}